class Log{
  static bool iPrint=true;
  static bool dPrint=true;
  static bool wPrint=true;
  static bool ePrint=true;
  static void d(String tag, Object content){
    _print(""
        "Debug",tag,content );
  }
  static void w(String tag, String content){
    _print("Warning",tag,content);
  }
  static void e(String tag, String content){
    _print("Error",tag,content);
  }
  static void i(String tag, String content){
    _print("Infor",tag,content);
  }
  static _print(String level,String tag, Object  content ){
    if(level=="Debug"&&dPrint){
      print(level+":"+tag+":"+content.toString());
    }else if(level=="Warning"&&wPrint){
      print(level+":"+tag+":"+content.toString());
    }else if(level=="Error"&&ePrint)   {
      print(level+":"+tag+":"+content.toString());
    } else if(level=="Infor"&&iPrint){
      print(level+":"+tag+":"+content.toString());
    }
  }
}